package domaine;

import java.util.ArrayList;
import java.util.List;

import android.graphics.Bitmap;

public class Product {
	
	private String ean;
	private String titre;
	private String date;
	private String genre;
	private Bitmap couverture;
	private float rating;
	private int type;

	private List<Maker> makers;

	public Product() {
		makers = new ArrayList<Maker>();
	}

	public Product(String ean, String titre, String date, String genre,
			Bitmap couverture, float rating, int type) {
		this.ean = ean;
		this.titre = titre;
		this.date = date;
		this.genre = genre;
		this.couverture = couverture;
		this.rating = rating;
		this.type = type;

		makers = new ArrayList<Maker>();
	}

	public String getEan() {
		return ean;
	}

	public void setEan(String ean) {
		this.ean = ean;
	}

	public String getTitre() {
		return titre;
	}

	public void setTitre(String titre) {
		this.titre = titre;
	}

	public String getDate() {
		return date;
	}

	public void setDate(String date) {
		this.date = date;
	}

	public String getGenre() {
		return genre;
	}

	public void setGenre(String genre) {
		this.genre = genre;
	}

	public Bitmap getCouverture() {
		return couverture;
	}

	public void setCouverture(Bitmap couverture) {
		this.couverture = couverture;
	}

	public float getRating() {
		return rating;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public void setRating(float rating) {
		this.rating = rating;
	}

	public List<Maker> getMakers() {
		return makers;
	}

	public void addMaker(Maker m) {
		if (m == null)
			return;
		makers.add(m);
	}
}
